package cn.itsource.org.domain;

import cn.itsource.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
//@table 就是将表名与实体类名称做关系映射
@Table(name = "t_shop")
public class Shop implements BaseDomain {
    @Id
    //这个注解是用来返回新增后的主键用的
    @GeneratedValue(generator = "JDBC")
    private Long id;
    private String name;
    private String tel;
    private Date registerTime;
    private Integer state;
    private String  address;
    private String logo;
    private Boolean del;
}
